/*JS for the navigation of the header,IE ONLY!!!!!!!!*/
navHover = function() {
	var lis = document.getElementById("mainNav").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);
/*To change the font size of the content area.*/
function changeFont(a){$("#content").css('fontSize',a+'px');}
$(function(){
 var change = $('<div id="changeFont">改变内容文字大小：</div>').prependTo('#content');
 $('<button>12像素</button>').click(function(){changeFont(12)}).appendTo(change);
 $('<button>14像素</button>').click(function(){changeFont(14)}).appendTo(change);
 $('<button>16像素</button>').click(function(){changeFont(16)}).appendTo(change);
 //以上为改变字体
})